package br.com.fieo.sgee.logic;

import br.com.fieo.sgee.dao.DaoFactory;

/**
 * Classe para controlar a regra de negocio da entidade ConsumptionsEstimatesKwhs
 * @author rbueno
 */
public class ConsumptionsEstimatesKwhsLogic {

    /** Instancia da classe atual */
    private static ConsumptionsEstimatesKwhsLogic _instance = null;
    /** instancia da classe DaoFactory */
    private final DaoFactory factory;

    /**
     * obter uma intancia da classe
     * @return a intancia ativa
     */
    static public ConsumptionsEstimatesKwhsLogic getInstance() {
        if (_instance == null) {
            _instance = new ConsumptionsEstimatesKwhsLogic();
        }
        return _instance;
    }

    /**
     * Construtor privado para fazer com que a instancia do DaoFactory sejá unica
     */
    private ConsumptionsEstimatesKwhsLogic() {
        factory = new DaoFactory();
    }
    
}
